import 'package:flutter/material.dart';

import 'componts/tab_bar.dart';

class MainPage extends StatefulWidget {
  MainPage({Key? key}) : super(key: key);

  @override
  _MainPageState createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        elevation: 0.5,
        leading: const Icon(
          Icons.menu,
          size: 20,
          color: Colors.black,
        ),
        actions: const [
          Icon(
            Icons.menu,
            size: 20,
            color: Colors.black,
          ),
        ],
      ),
      body: Column(
        children: [
          Expanded(
              child: Container(
            color: Colors.white,
          )),
          AppTabbar(
            ontap: (idx) {},
          ),
        ],
      ),
    );
  }
}
